$(document).ready(function(){
 
    var validateParams = {            
        rules:
        {
            name: "required",
            email: {
                required: true,
                email: true
            }
        },

        messages:
        {
            name:           "<strong>Name: </strong>Please enter your name" ,
            email:          "<strong>Email: </strong>Please enter existing e-mail address"
        },

        
        submitHandler: function(form) {   
            form.submit();
        }
    };

    var feedbackFormValidatorSettings = generateSettings( validateParams );
    
    $('#trial_form').validate(feedbackFormValidatorSettings);
    
});